/**
 * @description 瓦片服务
*/

const Service = require('./service.js')
const DatarFile = require('../extends/datar.js')
const config = global.config

// 服务
class Demo extends Service {
  constructor () {
    super()
    this.datar = new DatarFile()
  }

  // 查询任务
  query () {
    let data = this.datar.readJSON(config.dbPath + '/data.json')
    return this.result({
      success: 1,
      msg: '成功',
      data: data
    })
  }
}

module.exports = Demo